//<![CDATA[
// Emoticon bar before comment-form
// www.bloggerspice.com
$(function() {
    $(putEmoAbove)
      .before('<div style="text-align:center" class="BSemoWrap"> :) :( :P :D :o ;) :-? ;( ^_^ :love: :s :* .-. :like: :dislike: :poop: :rofl: <br /><br />  :urla: :wtf: :troll: :sticazzi: :sobria: :seifalsa: :lilo: :marina: :muoio: :muori: :jesus: :gaga: :dope: :9anni: :AH: :brit: :chebrutto:  </div> <br />');
    var emo = function(emo, imgRep, BSemoKey) {
        $(emoRange)
            .each(function() {
            $(this)
                .html($(this)
                .html()
                .replace(/<br>:/g, "<br> :")
                .replace(/<br>;/g, "<br> ;")
                .replace(/<br>=/g, "<br> =")
                .replace(/<br>\^/g, "<br> ^")
                .replace(emo, " <img style='max-height:100%' src='" + imgRep + "' class='emo delayLoad' alt='" + BSemoKey + "' />"));
        });
    };
        emo(/\s:\)+/g, "http://3.bp.blogspot.com/-IjiQd9l-oDQ/UeFZJL8C1rI/AAAAAAAABA4/ApWEuIUTBT8/s1600/smile.png", ":)");
    emo(/\s:\(+/g, "http://1.bp.blogspot.com/-lG05CuZgmBc/UeFZDQrCIOI/AAAAAAAAA_A/5qab87SaYCQ/s1600/frown.png", ":(");
    emo(/\s:p/ig, "http://3.bp.blogspot.com/-wE4F7RvuXNs/UeFZKSsPj0I/AAAAAAAABBI/kcu_pSjQuUQ/s1600/tongue.png", ":P");
    emo(/\s:D/ig, "http://3.bp.blogspot.com/-gIEBJe9Okx0/UeFZEdrX3SI/AAAAAAAAA_Y/nRrx4ACzZZg/s1600/grin.png", ":D");
    emo(/\s:o/ig, "http://4.bp.blogspot.com/-DbD1uvAcHIk/UeFZENIJxmI/AAAAAAAAA_o/aCJ19RJjdPA/s1600/gasp.png", ":o");
    emo(/\s;\)+/g, "http://2.bp.blogspot.com/-pcqdaAkWMCI/UeFZMzSxSaI/AAAAAAAABB8/RXshw-JV7Pw/s1600/wink.png", ";)");
    emo(/\s:-\?/g, "http://2.bp.blogspot.com/-FRCTQ7qnF3g/UeFZLX9mHGI/AAAAAAAABBY/YjTk0fR_Ib4/s1600/unsure.png", ":-?");
    emo(/\s;\(+/g, "http://2.bp.blogspot.com/-pkoQg11YaFU/UeFZBkuMHzI/AAAAAAAAA-Y/i1u0GNzZLSU/s1600/cry.png", ";(");
    emo(/\s^_^/ig, "http://1.bp.blogspot.com/-kuYqVovWHKM/UeFZFdS3VGI/AAAAAAAAA_s/HFdG-XgiE4M/s1600/kiki.png", "^_^");
    emo(/\s:love:/ig,, "http://4.bp.blogspot.com/-r2eg0cK6238/UeFZEn8g2NI/AAAAAAAAA_g/XRTGPL3o4CI/s1600/heart.png", ":love:");
    emo(/\s:s/ig, "http://4.bp.blogspot.com/-GFJK2Sxxg30/UeFZBRgXd7I/AAAAAAAAA_M/XGZK3VCf0mw/s1600/confused.png", ":s");
    emo(/\s:s/ig, "http://4.bp.blogspot.com/-eHjgsMTRBH8/UeFZB94-zMI/AAAAAAAAA-c/N4biPY4o4Gk/s1600/curlylips.png", ":3");
    emo(/\s:*/ig, "http://1.bp.blogspot.com/-derIXL8RTsI/UeFZFs7LS3I/AAAAAAAAA_4/vRuisMNrIQU/s1600/kiss.png", ":*");
  emo(/\s.-./ig, "http://3.bp.blogspot.com/-6G998D4MwA0/UeFZL7yFWoI/AAAAAAAABBo/PENx-7HnrZI/s1600/upset.png", ".-.");
    emo(/\s:like:/ig, "http://2.bp.blogspot.com/-sc2SxdsNDww/UeFZF1hAHGI/AAAAAAAAA_8/TsHX5jc70wU/s1600/like.png", ":like:");
    emo(/\s:dislike:/ig, "http://1.bp.blogspot.com/-vhBftsFal7Q/UeFZCSiePpI/AAAAAAAAA-o/ELErixWBewo/s1600/dislike.png", ":dislike:");
    emo(/\s:poop:/ig, "http://2.bp.blogspot.com/-bL3bxJweMwI/UeFZIFUqLHI/AAAAAAAABAo/y1ysoLw0FiY/s1600/poop-smiley.png", ":poop:");
    emo(/\s:rofl:/ig, "http://3.bp.blogspot.com/-yLGN7066Fmc/UeFefF5wzvI/AAAAAAAABCY/-NitAumoKRQ/s1600/rofl.gif", ":rofl:");
    emo(/\s:urla:/ig, "http://2.bp.blogspot.com/-y1DnYIiW6os/UeFZMhKsAVI/AAAAAAAABB4/zMloiGGw0d8/s1600/urla.gif", ":urla:");
    emo(/\s:wtf:/ig, "http://2.bp.blogspot.com/-g1C50NwJ9xE/UeFZNf_EFmI/AAAAAAAABCM/qTdgqRIVv_I/s1600/wtf.gif", ":wtf:");
    emo(/\s:troll:/ig, "http://2.bp.blogspot.com/-CUG3M_w8fJE/UeFZLOlPufI/AAAAAAAABBc/cjE-EHU0yxc/s1600/troll.gif", ":troll:");
    emo(/\s:sticazzi:/ig, "http://2.bp.blogspot.com/-qHmgktX6gus/UeFZKHFJ5fI/AAAAAAAABBM/LDu23ONSzyk/s1600/sticazzi.gif", ":sticazzi:");
    emo(/\s:sobria:/ig, "http://2.bp.blogspot.com/-cMqdA3JC_q0/UeFZJu1p5eI/AAAAAAAABA8/bIxf_7JbjXo/s1600/sobria.gif", ":sobria:");
    emo(/\s:seifalsa:/ig, "http://4.bp.blogspot.com/-cZtjjrGa2H0/UeFZI8-h-iI/AAAAAAAABBw/3d18KD1bb-I/s1600/seifalsa.gif", ":seifalsa:");
    emo(/\s:lilo:/ig, "http://1.bp.blogspot.com/-2MQQwSvn3-A/UeFZGYXpR3I/AAAAAAAABAM/iW_7fkSusT0/s1600/lilo.gif", ":lilo:");
    emo(/\s:marina:/ig, "http://2.bp.blogspot.com/-VIfboxsUizY/UeFZGuOgZlI/AAAAAAAABAI/d2qqfRYan9o/s1600/marina.gif", ":marina:");
    emo(/\s:muoio:/ig, "http://4.bp.blogspot.com/-Br7X31q-ZBE/UeFZHMw5kWI/AAAAAAAABAY/Lw04DVMJVNk/s1600/muoio.gif", ":muoio:");
    emo(/\s:muori:/ig, "http://3.bp.blogspot.com/-Ev84hR-mDHA/UeFZHgLg7GI/AAAAAAAABAg/rrHXTQ6HErM/s1600/muori.gif", ":muori:");
    emo(/\s:jesus:/ig, "http://1.bp.blogspot.com/-7pb_6ZNUsxM/UeFZFNHzPyI/AAAAAAAABAs/PbJlMp5fNEk/s1600/jesus.gif", ":jesus:");
    emo(/\s:gaga:/ig, "http://4.bp.blogspot.com/-bZHCMk1O2Ec/UeFZDkM34hI/AAAAAAAAA_I/Z1Co_27cUto/s1600/gaga.gif", ":gaga:");
    emo(/\s:dope:/ig, "http://4.bp.blogspot.com/-3x6TxUQsJoE/UeFZC1KSb3I/AAAAAAAAA-w/ab_uacBVmM4/s1600/dope.gif", ":dope:");
    emo(/\s:9anni:/ig, "http://4.bp.blogspot.com/-zOy6oes6-3g/UeFZAlBXr5I/AAAAAAAAA-I/S2aOcjdxw1E/s1600/9anni.gif", ":9anni:");  
    emo(/\s:AH:/ig, "http://1.bp.blogspot.com/-bMIGoQoXr-0/UeFZAMH35xI/AAAAAAAAA9w/dmvs1jr8qPg/s1600/AH.gif", ":AH:");  
    emo(/\s:brit:/ig, "http://1.bp.blogspot.com/-FhxbZLL3RFg/UeFZAFhtjbI/AAAAAAAAA90/z-rGg1UHwwg/s1600/brit.gif", ":brit:");  
    emo(/\s:chebrutto:/ig, "http://1.bp.blogspot.com/-O2PRkVM36Dk/UeFZBDX3h5I/AAAAAAAAA-E/t75wgROotek/s1600/chebrutto.gif", ":chebrutto:");  
   
// Show alert one times!
    $('div.BSemoWrap')
        .one("click", function() {
        if (emoMessage) {
            alert(emoMessage);
        }
    });
    // Click to show the code!
       $('.emo')
        .css('cursor', 'pointer')
        .live("click", function(e) {
        $('.BSemoKey')
            .remove();
        $(this)
            .after('<input class="BSemoKey" type="text" size="' + this.alt.length + '" value=" ' + this.alt + '" />');
$('.BSemoKey')
            .trigger("select");
e.stopPropagation();
    });
    $('.BSemoKey')
        .live("click", function() {
        $(this)
            .focus()
            .select();
    });
});
//]]>